﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace testTennis
{
    public class Player
    {
        private String playerName = "";
        private String currentPoint = "";

        public String getPlayerName()
        {
            return this.playerName;
        }

        public void setPlayerName(String playerName)
        {
            this.playerName = playerName;
        }

        public String getCurrentPoint()
        {
            return this.currentPoint;
        }

        public void setCurrentPoint(String currentPoint)
        {
            this.currentPoint = currentPoint;
        }
    
        public void increasePoints()
        {      
            switch (currentPoint)
            {
                case "0": setCurrentPoint("15"); break;
                case "15": setCurrentPoint("30"); break;
                case "30": setCurrentPoint("40"); break;
                case "40": setCurrentPoint("GamePoint");break;
            }
        }
    }
}
